package yxy.cherry.battle.module.actor;

public class Actor_初始化 extends Actor {

	@Override
	public void doAct() {
		getRecord().info("初始化数据");
//		Team teamA = getContext().getTeamA();
//		Team teamB = getContext().getTeamB();

		// 录像流
//		for (Fighter fighter : teamA.getFighters()) {
//			getRecord().getStream(RecordField.FORMAT).addObject()//
//					.addStep(RecordField.POS, fighter.getPositionField().name())//
//					.addStep(RecordField.ID, fighter.getDataId())//
//					.addStep(RecordField.HPC, fighter.get血量())//
//					.addStep(RecordField.HPU, fighter.get生命())//
//					.addStep(RecordField.ANG, fighter.getAnger());
//		}
//		for (Fighter fighter : teamB.getFighters()) {
//			getRecord().getObject(RecordField.FORMAT)//
//					.getObject(fighter.getPositionField())//
//					.addStep(RecordField.ID, fighter.getDataId())//
//					.addStep(RecordField.HPC, fighter.get血量())//
//					.addStep(RecordField.HPU, fighter.get生命())//
//					.addStep(RecordField.ANG, fighter.getAnger());
//		}

		getRecord().info("开始战斗");
	}

	@Override
	public boolean canAct() {
		return true;
	}

}
